package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * .页面控制转发
 * 
 * @description:
 * @author: zhangsike
 * @date: 2018/11/17 22:18:55
 */
@Controller
public class PageController {

	@GetMapping("/")
	public String index(Model model) {
		return "bus/mqtt-publish";
	}

	@GetMapping("/html/{path1}")
	public String index(@PathVariable String path1) {
		return path1;
	}

	@GetMapping("/html/{path1}/{path2}")
	public String index(@PathVariable String path1, @PathVariable String path2) {
		return path1 + "/" + path2;
	}
}
